-- GENERATED SPELL FOR [Sap Beast] --


function spell0_4020(pUnit, Event) --@Sap Might,n/a--
pUnit:FullCastSpellOnTarget(7997,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4020', 643, 1)
end

function Sorts_4020(pUnit, Event)
local choix_sorts_4020 = math.random(0, 0)
if choix_sorts_4020 == 0 then
pUnit:RegisterEvent('spell0_4020', 1, 1)
end
end

function mob4020_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4020', math.random(1500, 3000), 1)
end

function mob4020_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4020_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4020_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4020, 1, 'mob4020_Action')
RegisterUnitEvent(4020, 2, 'mob4020_Leave')
RegisterUnitEvent(4020, 3, 'mob4020_Kill')
RegisterUnitEvent(4020, 4, 'mob4020_Die')
